FROM docker.500px.me/java:latest
VOLUME /tmp
RUN mkdir -p /opt/application/comment
ADD target/classes /opt/application/comment/classes
ADD target/dependency /opt/application/comment/dependency
ENV JAVA_OPTS="-server -Xms1024M -Xmx1024M -Xss512k -XX:PermSize=256M -XX:MaxPermSize=512M"
EXPOSE 8090 5005
CMD ["java","-cp","/opt/application/comment/classes:/opt/application/comment/dependency/*","com.vcg.CommentLaunch"]
